:root {
    --font-size-big: 1.6rem;
    --font-size-mid: 1.3rem;
    --font-size-regular: 1rem;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}


@media screen and (max-device-width: 480px) {


    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    html {
        font-size: 13px;
    }

    body {
        font-size: 1rem;
        line-height: 1rem;
    }

    h2,
    h2.underline,
    #services h2 {
        font-size: var(--font-size-big);
        line-height: var(--font-size-big);
        margin: 0 0 2rem 0;

    }

    h3 {
        font-size: 1.3rem;
        line-height: 1.3rem;
    }

    #header {
        width: 100%;
        height: 65px;
        background-size: cover;
    }

    #header .section-content {
        padding: 0;
    }

    #header .contacts {
        width: 200px;
        padding: 0;
    }

    #header .contacts .value {
        float: right;
        font-size: 13px;
    }

    #main-banner h1 {
        top: 150px
    }

    #main-banner h2 {
        top: 220px;
        font-size: 1.3rem;
        line-height: 1.3rem;
    }

    .section-wrapper .section-content {
        width: 90%;
        padding: 20px 0;
    }

    #about .section-content {
        background: inherit;
        padding: 0;
        font-size: 1rem;
        line-height: 1rem;
    }

    #about .section-content {
        padding: 20px 0;
    }

    #advantages2 {
        background: url(../images/steps-bg.png) 50% 50% no-repeat #1f1f1f;
    }

    #advantages2 h2 {
        margin-top: 0;
    }

    #steps .section-content {
        padding-bottom: 20px;
    }

    #steps .left {
        width: 100%;
    }

    #steps .right {
        display: none;
    }

    #steps h2 {
        width: 100%;
        margin: 0 0 2rem 0;
    }

    #steps .item {
        font-size: var(--font-size-regular);
        line-height: var(--font-size-regular);
        margin-bottom: 1rem;
        height: auto;
        margin-left: 0;
    }

    #steps .item h4 {
        font-size: var(--font-size-mid);
        line-height: var(--font-size-mid);
    }

    #steps .item.item-sales {
        margin-bottom: 1rem;
    }

    .contacts {
        text-align: right;
        padding-right: 50px;
    }

    .contacts .phone {
        font-size: 1rem;
        text-align: right;
    }

    .contacts .mail {
        font-size: 1rem;
        margin-top: 12px;
        text-align: right;
    }

    .contacts a {
        color: white;
        text-decoration: none;
    }

    #header .logo {
        width: 100px;
        margin: 10px;
        height: 40px;
        background-size: contain;
    }


    .popup-container {
        margin-top: 0;
        margin-left: 0;
        width: 100%;
        left: 0;
        box-sizing: border-box;
        display: block;
        top: -100%;

        transition: all 1s ease;
    }

    .popup-container.active {
        top: 0;
    }

    .popup-container h4 {
        font-size: var(--font-size-mid);
        line-height: var(--font-size-mid);
        margin-top: 5rem;
        text-align: center;
        padding: 0 10%;
    }

    .popup-container .contact-form input[type=text],
    .popup-container .contact-form input[type=email] {
        font-size: var(--font-size-mid);
        margin-top: 2rem;
        padding: 1rem;
        font-family: 'Open Sans', sans-serif;
    }

    .popup-container {

    }

    .contact-form .wpcf7-spinner {
        display: none;

    }

    .contact-form .wpcf7-not-valid-tip {
        font-size: 1rem;
        text-align: center;
    }

    .contact-form div.wpcf7 .ajax-loader {
        width: 100px;
        height: 100px;
    }


    .contact-form input {
        text-align: center;
    }

    .button {
        padding: 1.5rem;
        font-size: 1.5rem;
    }

    .popup-container .close-button {
        width: 30px;
        height: 30px;
        background-size: cover;
        top: 2rem;
        right: 2rem;
    }

    .popup-container form {
        text-align: center;
    }

    .popup-container form .button {
        font-size: var(--font-size-mid);
        line-height: var(--font-size-mid);
        margin-top: 3rem;

    }

    .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
        border: none;
    }

    #advantages2 .number {
        font-size: 2rem;
        width: 50px;
        height: 30px;
        line-height: 1.5rem;
    }

    #advantages2 h4 {
        font-size: var(--font-size-mid);
        line-height: var(--font-size-mid);
        text-align: center;
    }

    #advantages2 .item {
        height: auto;
        padding: 1rem 1rem 2rem 1rem;
        width: 100%;
        font-size: var(--font-size-regular);
        line-height: var(--font-size-regular);
        text-align: justify;
    }

    #services .services-items .service-item .image-shadow {
        display: none;
    }

    #services .services-items .service-item {
        width: 45%;
        margin-bottom: 10px;
    }

    #services .services-items .service-item .image {
        width: 100%;
        height: 150px;
        background-size: cover;
        margin-bottom: 10px;
        margin-left: 0;
    }

    #services .services-items .service-item .title {
        font-size: var(--font-size-regular);
        line-height: var(--font-size-regular);
    }

    #targets {
        padding: 0;
    }

    #targets .item {
        width: 100%;
        box-sizing: border-box;
        height: auto;
    }

    #targets .item .image {
        width: 100%;
        height: auto;
        background-size: cover;
    }

    #targets .item .image img {
        max-height: 260px;
    }

    #targets .item ul li {
        font-size: var(--font-size-regular);
        line-height: var(--font-size-regular);
        background-size: 1rem;
        padding-left: 1.7rem;
    }

    #targets .item .title {
        font-size: var(--font-size-mid);
        line-height: var(--font-size-mid);
    }

    #about p {
        font-size: var(--font-size-regular);
        line-height: var(--font-size-regular);
        float: left;
    }

    .section-wrapper {
        overflow: hidden;
    }

    #footer {
        width: 100%;
        height: 65px;
        background-size: cover;
    }

    #footer .section-content {
        padding: 0;
    }

    #footer .contacts {
        width: 200px;
        padding: 0;
    }

    #footer .contacts .value {
        font-size: 2rem;
    }

    #footer .logo {
        background: url(../images/logo.png) no-repeat;
        width: 100px;
        margin: 10px;
        height: 40px;
        background-size: contain;
    }

    #container {
        height: calc(100vh - 130px);
    }

}